using Domain.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Domain.Configurations
{
	public class ActionLogConfiguration: IEntityTypeConfiguration<ActionLog>
	{
		public void Configure(EntityTypeBuilder<ActionLog> builder)
        {
			builder.ToTable(nameof(ActionLog))
				.HasKey(x => x.Id);
			builder.Property(x => x.Id).ValueGeneratedOnAdd();

			builder.Property(x => x.CreatedDate).ValueGeneratedOnAdd();

		}
	}
}
